//
//  YeeHomeCategoryTableViewCell.m
//  YeeShopProject
//
//  Created by CoderYee on 2017/2/28.
//  Copyright © 2017年 CoderYee. All rights reserved.
//

#import "YeeHomeCategoryTableViewCell.h"
#import "YeeButton.h"
@implementation YeeHomeCategoryTableViewCell

-(void)addOwnView
{

    for (NSInteger indexM=0; indexM<8; indexM++)
    {
        YeeButton *button=[YeeButton buttonWithType:UIButtonTypeCustom];
        [button setFrame:CGRectMake(indexM%4*kMainScreenWidth/4.0, indexM/4*kMainScreenWidth/4.0, kMainScreenWidth/4.0, kMainScreenWidth/4.0)];
        [self.contentView addSubview:button];
        button.edgeInsetsStyle=YeeButtonEdgeInsetsStyleImageTop;
        [button setImage:[UIImage imageNamed:@"icon_shouye_1"] forState:UIControlStateNormal];
        button.titleLabel.font=[UIFont Y_systemFontOfSize:13];
        [button setTitle:@"测试测试" forState:UIControlStateNormal];
        [button setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
        // [button setImageTitleSpace:0];
        
    }
}

@end
